/**
 *  model1
 *  Author: thuanvd_2
 *  Description: test grid
 */

model model1

global {
	file shape_file_grid <- file('../includes/grid.shp');
	file shape_file_block <- file('../includes/block.shp');
	file shape_file_bounds <- file('../includes/bounds.shp');
	init {
		create grid from: shape_file_grid;
		create block from: shape_file_block;
	}
}

environment bounds: shape_file_bounds;

entities {
	species grid {
		rgb color <-rgb('blue');
		aspect base{
			draw geometry: shape color: color;
		}
	}
	
	species block {
		rgb color <- rgb('red');
		aspect base{
			draw geometry: shape color: color;
		}
	}
}

experiment model1 type: gui {
	/** Insert here the definition of the input and output of the model */
	output {
		display grid_display refresh_every: 1{
			species block aspect: base;
			species grid aspect: base;
		}
	}
}
